package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * 野生动物救助
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_animal_rescue")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AnimalRescueModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //野生动物表ID
    private Integer allocationStatus;//分配状态
    private String realName;//处理单位
    private Integer handleStatus;//分配状态 1待处理  2已处理
    private Integer type;//野生动物种类
    private String position;//位置
    private String specificPosition;//具体位置
    private String animalSituation;//野生动物情况
    private String openId;//微信用户ID
    private String fileId;//文件id
    private String username;//用户名称
    private Double latitude;//经度
    private Double longitude;//经度
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;

    @TableField(exist = false)
    private String statusText;//状态文字显示

    @TableField(exist = false)
    private String typeText;//野生动物种类文字

    @TableField(exist = false)
    private RescueHandleModel rescueHandle; //如何分配状态为 3已办结  查询这个
    @TableField(exist = false)
    private String url;
    @TableField(exist = false)
    private String videoUrl;

    @TableField(exist = false)
    private String[] video;//视频
    @TableField(exist = false)
    private String[] pic;//图片
}
